<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>卖家品牌申请  -  Powered by wemall</title>
<meta name="keywords" content="$!config.keywords" />
<meta name="description" content="$!config.description" />
<meta name="generator" content="wemall 2.0" />
<meta name="author" content="www.wemall.com">
<meta name="copyright" content="wemall Inc. All Rights Reserved">
<link href="$!webPath/resources/style/system/front/default/css/public.css" type="text/css" rel="stylesheet" />
<link href="$!webPath/resources/style/system/front/default/css/user.css" type="text/css" rel="stylesheet" />
<link  href="$!webPath/resources/style/common/css/jquery-ui-1.8.22.custom.css" type=text/css rel=stylesheet>
<link href="$!webPath/resources/style/common/css/overlay.css" type="text/css" rel="stylesheet" />
<script src="$!webPath/resources/js/jquery-1.8.3.min.js"></script>
<script src="$!webPath/resources/js/jquery.validate.min.js"></script>
<script src="$!webPath/resources/js/jquery-ui-1.8.21.js"></script>
<script src="$!webPath/resources/js/jquery.zh.cn.js"></script>
<script src="$!webPath/resources/js/jquery.shop.common.js"></script>
<script>
jQuery(document).ready(function(){
jQuery.validator.addMethod("verify",function(value,element){
var re = /^[a-zA-Z]*$/;
        if(re.test(jQuery("#first_word").val())){			
			return true;
		  } 
		  else {
		    return false;
			  }
});
  jQuery("#theForm").validate({
       rules: {
			name:{required:true},
			first_word:{required:true,verify:true,maxlength:1},
			brandLogo:{#if(!$!obj)required:true,#end accept:"jpg,gif,png,jpeg"}
		  },
	   messages: {
		    name:{required:"品牌名称不能为空"},
			first_word:{required:"名称首字母不能为空",verify:"请输入名称首字母",maxlength:"输入长度不正确"},
			brandLogo:{#if(!$!obj)required:"品牌标志不能为空",#end accept:"格式不对，只能为jpg|gif|png|jpeg"}
	     }
  });
});
</script>
</head>
<body>
$!httpInclude.include("/top.htm")
<div class="main"> $!httpInclude.include("/seller/nav_head.htm")
  <div class="user_center">
    <table width="1200" border="0" cellspacing="0" cellpadding="0" class="user_table">
      <tr>  $!httpInclude.include("/seller/nav.htm?op=usergoodsbrand")
        <td id="centerbg" valign="top">
         <div class="buyer_position"><div class="buyer_p_box"><a href="$!webPath/seller/index.htm">卖家中心</a> > <span>卖家品牌</span></div></div>
        <div class="productmain">
            <div class="ordernav">
              <ul class="orderul">
               #if($!edit)
               <li ><a href='$!webPath/seller/usergoodsbrand_list.htm' >品牌列表</a></li>
               <li><a href='$!webPath/seller/usergoodsbrand_add.htm' >申请品牌</a></li>
               <li class="this"><a href='javascript:void(0);' >编辑品牌</a></li>
               #else
               <li ><a href='$!webPath/seller/usergoodsbrand_list.htm' >品牌列表</a></li>
               <li class="this"><a href='$!webPath/seller/usergoodsbrand_add.htm' >申请品牌</a></li>
               #end
              </ul>
            </div>
            <div class="ordercon">
              <div class="addnav">
                <form action="$!webPath/seller/usergoodsbrand_save.htm" method="post" id="theForm" enctype="multipart/form-data">
                 <input name="id" type="hidden" id="id"  value="$!obj.id"/>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="addnavtable">
                    <tr>
                      <td align="right" valign="top" class="modifysp" width="155"><span>品牌名称：</span><span><strong class="red" style="font-size:14px;">*</strong></span></td>
                     <td  class="px10"><span class="setinput">
                        <input name="name" type="text" id="name"  value="$!obj.name"/>
                      </span></td>
                    </tr>
                     <tr>
                      <td align="right" valign="top" class="modifysp" width="155"><span>首字母：</span><span><strong class="red" style="font-size:14px;">*</strong></span></td>
                     <td  class="px10"><span class="setinput">
                        <input name="first_word" type="text" id="first_word"  value="$!obj.first_word"/>
                      </span></td>
                    </tr>
                    
                    #if($!obj.brandLogo)
                     <tr>
                      <td align="right" valign="top" class="modifysp" width="155"><span>品牌预览：</span></td>
                      <td  class="px10">
                        <a href="$!webPath/$!obj.brandLogo.path/$!obj.brandLogo.name" target="_blank"><img src="$!webPath/$!obj.brandLogo.path/$!obj.brandLogo.name" height="44px" width="88px" title="点击查看大图"/></a>
                    </td>
                    </tr>
                    #end
                    <tr>
                      <td align="right" valign="top" class="modifysp"><span>品牌标志：</span><span><strong class="red" style="font-size:14px;">*</strong></span></td>
                      <td  class="px10">
                        <input name="brandLogo" type="file" id="brandLogo" />
                    </td>
                    </tr>
                    
                    <tr>
                      <td align="right" valign="top" class="modifysp"><span>申请备注：</span></td>
                      <td  class="px10"><span class="setinput">
                        <textarea name="remark" cols="40" rows="6" id="remark">$!obj.remark</textarea>
                     </span></td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                      <td class="px10"><span class="setsub">
                        <input name="" type="submit"  value="提交" style="cursor:pointer;"/>
                      </span></td>
                    </tr>
                  </table>
                </form>
              </div>
            </div>
          </div></td>
      </tr>
    </table>
  </div>
  $!httpInclude.include("/footer.htm") </div>
</body>
</html>
